####自定义参数
def count(num):
    def my_decorator(func):
        def wrapper(*args, **kwargs):
            for i in range(num):
                print("这是装饰后具有的新输出")
                func(*args, **kwargs)
        return wrapper
    return my_decorator

@count(3)   #相当于count(3)  返回my_decorator函数引用  再调my_decorator(hello(people_name))  = count(3)my_decorator(hello(people_name))
def hello(people_name):
    print("你好，{}".format(people_name))

if __name__ == '__main__':
    hello("老王")